package com.k2data.k2app.mapper;

import com.k2data.k2app.domain.SysRole;
import com.k2data.k2app.mybatis.mapper.K2Mapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 角色DAO接口
 * @author ThinkGem
 * @version 2013-12-05
 */
@Mapper
@Repository
public interface SysRoleMapper extends K2Mapper<SysRole> {
	long insertOfSelective(SysRole sysRole);
	List<SysRole> queryList();
	List<SysRole> rolesByUserId(Long userId);
	int updateByPrimaryKeySelective(SysRole sysRole);
	int deleteById(Long id);
}
